package com.aaa.three.mapper;

import com.aaa.three.pojo.domain.*;
import com.aaa.three.pojo.query.AdminInfoQuery;
import com.aaa.three.pojo.vo.AdminVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminInfoMapper {

    List<AdminInfo> queryAdminInfo(AdminInfoQuery query);

    Long queryAdminInfoTotal(AdminInfoQuery query);

    int deleteAdmin(int id);

    List<AdminDept> queryDname();

    List<AdminOffice> queryOname(int id);

    List<AdminRole> queryRname(int id);

    int addAdmin(AdminVO adminVO);

    AdminVO getyAdminInfo(int id);

    List<AdminOffice>  getOname();

    List<AdminDept>  getDname();

    List<AdminRole>  getRname();

    int updateAdmin(AdminVO adminVO);

    List<AdminEducation> queryEducation();

    int addLogin(@Param("newPhone") String newPhone,@Param("newId")  int newId);

    int queryCount(String newPhone);

    Integer addFiles(AdminVO object);

    int getDeptState(Integer did);

    int getOfficeState(Integer oid);


}
